import { BroadCastCall } from "../broadCast/BroadCastCall";
import { MessageBlock } from "../../../../Framework/MQ/MessageBlock";
import { SAttribute } from "../../../../Message/Public/SAttribute";
import { RolePlayer } from "../../scene/player/entity/RolePlayer";
import { ThingUtil } from "../../scene/layer/utils/ThingUtil";
import { NetDispatcher } from "../../../mvc/core/NetDispatcher";
import { ServerCommand } from "../../mvc/ServerCommand";
//class FightModelCampUnionUpdate
    
    export  class FightModelCampUnionUpdate extends BroadCastCall
    {
        constructor(arg1: Object)
        {
            super(arg1);
            return;
        }

        public /* override */ call(arg1: MessageBlock): void
        {
            var loc1=arg1.messageBase as SAttribute;
            RolePlayer.instance.campUnion = loc1.value;
            ThingUtil.entityUtil.changeFightModle();
            NetDispatcher.dispatchCmd(ServerCommand.FightModelCampUnionUpdateCommand, loc1);
            return;
        }
    }
